package com.pattern.prototype;

/**
 * @Description: 具体原型模式
 * @Author: whp
 * @Date: 2021-01-27 16:55
 */
public class Realizetype implements Cloneable{
    public Realizetype(){
        System.out.println("具体原型创建成功");
    }

    @Override
    public  Object clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功");
        return super.clone();
    }
}
